import sys
import re

print("{", end = "")
first = True
with open("error", "r+") as erFile:
    for i in erFile:
        if first:
            first = False
        else:
            print(", ", end = "")
        url = ""
        site = "https://lostmediaarchive" + i.split("https://lostmediaarchive", 1)[1].rstrip()[:-1]
        if "appeared as" in site:
            url = str(re.search('appeared as (.*)$', site).group(1))[:-1]
            site = str(re.search('(.*)appeared', site).group(1))[:-2]
        else:
            url = str(re.search('([^:]*) : ', i).group(1))
        print('"' + url + '" : "' + site + '"', end='')
print("}", end='', flush=True)